{literal}
<h2>Annotation</h2>
@orm slug( propertyName )<br>
<br>
propertyName - Property name from what a slug will be created.<br>
<br>
<b>Slug</b> is a unique URL friendly keyword. <br>
<br>
For example lets say we have an article called "<b>Hello world!</b>". 
Then this articles title slug would be "<b>hello_world</b>". This helps to optimize for search engines.<br>
Slug is also <b>unique</b> per class bases - so it can be used as identification.<br>
<br>
<h2>Using</h2>
<pre class="code">
&lt;?php
class Article extends DomArObject {

	/**
	* @orm text
	*/
	public $title
	/**
	* @orm longtext
	*/
	public $contents;
	/**
	* @orm slug(title)
	*/
	public $slug;
}

// USAGE:
$a = new Article();
$a->title = 'Hello world!';
$a->contents = 'Some content';
echo $a->slug; // would print: hello_world
$a->save();

// lets define another article with same title
$a = new Article();
$a->title = 'Hello world!';
$a->contents = 'Some another content';
echo $a->slug; // would print: hello_world-1
$a->save();
?&gt;
</pre>

{/literal}